<?php
//define a pasta application
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

//defini o ambiente da aplicacao
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', 'production');

//library do framework no include path
set_include_path(
    implode(PATH_SEPARATOR,
        array(
            realpath(APPLICATION_PATH . '/../library'),
            realpath(APPLICATION_PATH . '/../plugins'),
            get_include_path(),
        )
    )
);

define('PATH_IMG','/ecommerce/public/produtofotos/');

require_once 'Zend/Application.php';
//intancia a aplicacao enviando o ambiente e o arquivo de configuracao
$application = new Zend_Application(APPLICATION_ENV,APPLICATION_PATH . '/configs/application.ini');


require_once 'Layout.php';
require_once 'AclPlugin.php';
require_once 'MyAcl.php';

//run
$application->bootstrap()->run();